<?xml version='1.0' encoding='iso-8859-1'?>
<!doctype html public '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
<html xmlns='http://www.w3c.org/1999/xhtml' lang='en-us'>
	<head>
		<title>
			files.h
			</title>
		<meta http-equiv='content-type' content='text/html;iso-8859-1'/>
		<meta name='generator' content='motley-tools 1.9.4 13:40:33 Feb 18 2015'/>
		<meta name='author' content='cmaier@cmassoc.net'/>
		<meta name='robots' content='noindex,nofollow'/>
		<link href='toolkit.css' rel='stylesheet' type='text/css'/>
		</head>
	<body>
		<div class='headerlink'>
			[<a href='ethernet.h.html' title=' ethernet.h '>PREV</a>]
			[<a href='toolkit.html' title=' Index '>HOME</a>]
			[<a href='flags.h.html' title=' flags.h '>NEXT</a>]
			</div>
<pre>
/*====================================================================*
 *
 *   files.h - custom filesystem definitions and declarations;
 *
 *   this file is a subset of the original that includes only those
 *   definitions and declaration needed for toolkit programs;
 *
 *   Motley Tools by Charles Maier &lt;cmaier@cmassoc.net&gt;;
 *   Copyright 2001-2006 by Charles Maier Associates;
 *   Licensed under the Internet Software Consortium License;
 *
 *--------------------------------------------------------------------*/

#ifndef FILES_HEADER
#define FILES_HEADER

/*====================================================================*
 *   system header files;
 *--------------------------------------------------------------------*/

#include &lt;stdio.h&gt;
#include &lt;fcntl.h&gt;
#include &lt;sys/stat.h&gt;

/*====================================================================*
 *   system header files;
 *--------------------------------------------------------------------*/

#include &quot;../tools/types.h&quot;

/*====================================================================*
 *   path and file extenders;
 *--------------------------------------------------------------------*/

#ifdef WIN32
#define PATH_C_EXTENDER '\\'
#define FILE_C_EXTENDER '.'
#else
#define PATH_C_EXTENDER '/'
#define FILE_C_EXTENDER '.'
#endif

/*====================================================================*
 *
 *--------------------------------------------------------------------*/

#define FILE_CANTSTAT &quot;%s can't stat %s&quot;, __func__
#define FILE_CANTOPEN &quot;%s can't open %s&quot;, __func__
#define FILE_CANTHOME &quot;%s can't home %s&quot;, __func__
#define FILE_CANTSIZE &quot;%s can't size %s&quot;, __func__
#define FILE_CANTSEEK &quot;%s can't seek %s&quot;, __func__
#define FILE_CANTREAD &quot;%s can't read %s&quot;, __func__
#define FILE_CANTLOAD &quot;%s can't load %s&quot;, __func__
#define FILE_CANTEDIT &quot;%s can't edit %s&quot;, __func__
#define FILE_CANTSAVE &quot;%s can't save %s&quot;, __func__
#define FILE_CANTSPAN &quot;%s won't span %s&quot;, __func__
#define FILE_WONTREAD &quot;%s won't read %s&quot;, __func__

/*====================================================================*
 *   file create and access modes;
 *--------------------------------------------------------------------*/

#ifdef WIN32
#define FILE_FILEMODE S_IREAD|S_IWRITE
#else
#define FILE_FILEMODE S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH
#define O_BINARY 0
#endif

/*====================================================================*
 *   functions;
 *--------------------------------------------------------------------*/

FILE *efopen (char const *filename, char const *openmode);
FILE *efreopen (char const *filename, char const *openmode, FILE *fp);
bool checkfilename (char const * string);
char const * filepart (char const * string);

/*====================================================================*
 *
 *--------------------------------------------------------------------*/

#endif


</pre>
		<div class='footerlink'>
			[<a href='ethernet.h.html' title=' ethernet.h '>PREV</a>]
			[<a href='toolkit.html' title=' Index '>HOME</a>]
			[<a href='flags.h.html' title=' flags.h '>NEXT</a>]
			</div>
		</body>
	</html>
